﻿using System.Runtime.Serialization;

namespace ModelLayer
{
    [DataContract]
    public class Customer : Person
    {
        [DataMember]
        public CustomerStatusEnum Status;

        public Customer()
        {
        }

        public Customer(string name, string address, int postalCode, string city, long phoneNo, string email, long id, long customerNo, CustomerStatusEnum status, string billingInfo)
            : base(name, address, postalCode, city, phoneNo, email, id)
        {
            CustomerNo = customerNo;
            Status = status;
            BillingInfo = billingInfo;
        }

        [DataMember]
        public long CustomerNo
        {
            get;
            set;
        }

        [DataMember]
        public string BillingInfo
        {
            get;
            set;
        }
    }
    
    [DataContract(Name = "CustomerStatus")]
    public enum CustomerStatusEnum
    {
        [EnumMember]
        Active,
        [EnumMember]
        Inactive
    }
}